# import requests
# url = "https://img04.sogoucdn.com/app/a/100520093/f9d5c084396d06f6-0c7006bf1d0bb8d5-f6caaf58ef4225eb2307614676de3c85.jpg"
# res = requests.get(url=url)
# print(res)
# countent = res.content
# with open('./xx.jpg','wb') as f:
#     f.write(countent)



# import re
# import time
# import requests
# import uuid
# url_page = "https://mm.enterdesk.com/dalumeinv/"
# ret = requests.get(url=url_page)
# url_lst = re.findall(r'https://up.enterdesk.com/edpic_360_360.*?\.jpg',ret.text)
# for url in url_lst:
#     res = requests.get(url=url)
#     time.sleep(3)
#     content = res.content
#     name = str(uuid.uuid1()) + ".jpg"
#     with open(name,'wb')as f:
#         print("正在下载%s" % name)
#         f.write(content)

import re
import time
import requests
import uuid

url_page = "http://www.qqtouxiang.com/pic/wm/"
ret = requests.get(url = url_page)
url_lst = re.findall(r'http://file.qqtouxiang.com/pic/wm/2020-07-21.*?\.jpg',ret.text)
for url in url_lst:
    res = requests.get(url=url)
    time.sleep(3)
    content = res.content
    name = str(uuid.uuid1()) + ".jpg"
    with open(name,'wb') as f:
        print("爬取完毕%s" % name)
        f.write(content)

# import re
# import time
# import requests
# import uuid
# url_page = "https://mm.enterdesk.com/dongmanmeinv/"
# ret = requests.get(url = url_page)
# url_lst = re.findall(r'https://up.enterdesk.com/edpic_360_360.*?\.jpg',ret.text)
# for url in url_lst:
#     res = requests.get(url=url)
#     time.sleep(2)
#     content = res.content
#     name = str(uuid.uuid1()) + ".jpg"
#     with open(name,'wb') as f:
#         print("正在下载%s" % name)
#         f.write(content)


